package com.daiziru.wuyanmall.dao;

import com.daiziru.wuyanmall.entity.Category;
import com.daiziru.wuyanmall.entity.CategoryVO;
import com.daiziru.wuyanmall.general.GeneralDAO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryMapper extends GeneralDAO<Category> {

    //1、连接查询的实现
    public List<CategoryVO> selectAllCategories();
    //2、子查询的实现： 根据parentId实现子查询
    public List<CategoryVO> selectAllCategories2(int parentId);

    //3.查询一级类别的商品
    public List<CategoryVO> selectFirstLevelCategories();
}